package com.hspedu.homework.homework02;

/**
 * @Author Stringzhua
 * @Date 2024/3/7 14:32
 * description:
 */
public class Frock {
    private static int currentNum = 100000;
    private int serialNumber;//序列号

    //构造器

    public Frock() {
        serialNumber = getNextNum();
    }

    public int getSerialNumber() {
        return serialNumber;
    }

    public static int getNextNum() {
        return currentNum += 100;//增加100将其返回
    }
}
